getKeyframes

abstract fun getKeyframes(block: DesignBlock, property: String): List<Keyframe>

Get the keyframes of a block property, sorted by time. Throws BLOCK.KEYFRAMES_PROPERTY_NOT_ANIMATABLE when the property has no keyframes and isPropertyAnimatable returns false.

Return

the keyframes, or an empty list for an animatable property without keyframes.

Parameters

block

the block that owns the property.

property

the animatable property path.